package cn.com.huzo.repository.master.impl;

import cn.com.huzo.model.entities.master.PackingListTypeEntity;
import huzofw.repository.impl.GenericRepositoryImpl;
import huzofw.repository.impl.MyBatisDaoUtils;
import cn.com.huzo.repository.master.PackingListTypeRepository;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 * 外贸箱单类型数据访问对象。
 *
 * @author 吴旭
 */
@Repository("PackingListTypeRepository")
public class PackingListTypeRepositoryImpl extends GenericRepositoryImpl<PackingListTypeEntity, Long>
        implements PackingListTypeRepository {

    private final String namespace = "cn.com.huzo.repository.master.PackingListTypeRepository";

    /**
     * 构造函数,设置the instance to PackingListTypeRepositoryImpl.class.
     */
    public PackingListTypeRepositoryImpl() {
        super(PackingListTypeEntity.class);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<PackingListTypeEntity> fetchAll() {
        return getSqlSession().selectList(MyBatisDaoUtils.getMapperQueryId(
                namespace, "fetchAll"));
    }
}
